import storageManger from "@/utils/StorageManger";
import { defineStore } from "pinia";

// 全局配置store
export const useConfigInfoStore = defineStore("configInfoStore", {
	state: () => ({
		// ids文档记录
		identityServerDoc: storageManger.get("identityServerDoc"),
	}),
	persist: {
		enabled: true,
		strategies: [
			{
				storage: sessionStorage,
				paths: ["identityServerDoc"],
			},
		],
	},
});
